﻿/**
*┌──────────────────────────────────────────────────────────────┐
*│　描   述：                                                    
*│　作   者：ljx                                              
*│　版   本：1.0                                                 
*│　创建时间：2021/1/18 16:15:16                             
*└──────────────────────────────────────────────────────────────┘

*┌──────────────────────────────────────────────────────────────┐
*│　命名空间: Ldt.CommonCapacitySupport.Business.Model                                   
*│　类   名：AnalysisAPIModel                                      
*└──────────────────────────────────────────────────────────────┘
*/
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Ldt.CommonCapacitySupport.Business.Model
{
    /// <summary>
    /// 被处理数据，提交内容
    /// </summary>
    public class AnalysisAPIModel
    {
        /// <summary>
        /// 文书名称
        /// </summary>
        [Required]//必填特性
        public string Juanzbh { get; set; }

        /// <summary>
        /// 案件类型
        /// </summary>
        [Required]//必填特性
        public string Anjlxid { get; set; }

        /// <summary>
        /// 当前案件DOC库的案件ID
        /// </summary>
        [Required]//必填特性
        public string Anjid { get; set; }
        /// <summary>
        /// 案由ID
        /// </summary>
        [Required]//必填特性
        public string Anyid { get; set; }
        /// <summary>
        /// 段落内容
        /// </summary>
        [Required]//必填特性
        public List<ParagraphModel> ParagraphModelsList { get; set; }

    }
    /// <summary>
    /// 段落编号对象
    /// </summary>
    public class ParagraphModel
    {

        /// <summary>
        /// 分段编号
        /// </summary>
        public string Paragraphcode { get; set; }
        /// <summary>
        /// 分段内容
        /// </summary>
        public string ParagraphText { get; set; }
    }


    public class AnalysisApiElement
    {
        /// <summary>
        ///案件类型
        /// </summary>
        public string anjlx { get; set; }

        /// <summary>
        /// 案由ID
        /// </summary>
        public string anyid { get; set; }

        /// <summary>
        /// 需要合并的案件要素中心base64加密
        /// </summary>
        public string baseelement { get; set; }

        /// <summary>
        /// 被合并的案件要素中心base64加密
        /// </summary>
        public string mergeelement { get; set; }

        /// <summary>
        /// 分析流程选择
        /// </summary>
        public string configflow { get; set; }

        /// <summary>
        /// 应用ID
        /// </summary>
        public string appid { get; set; }

        /// <summary>
        /// 回填地址
        /// </summary>
        public string backurl { get; set; }
    }

    /// <summary>
    /// 违法行为post参数
    /// </summary>
    public class OffenceElement
    {
        /// <summary>
        /// 案件类型
        /// </summary>
        [Required]
        public string Anjlx { get; set; }
        /// <summary>
        /// 文书名称
        /// </summary>
        [Required]
        public string Juanzbh { get; set; }
        /// <summary>
        /// 分段编号
        /// </summary>
        [Required]
        public string Paragraphcode { get; set; }
        /// <summary>
        /// 分段内容
        /// </summary>
        [Required]
        public string ParagraphText { get; set; }

        /// <summary>
        /// 地域
        /// </summary>
        public string District { get; set; }

    }


    /// <summary>
    /// 情形情节公共能力
    /// </summary>
    public class PlotExtractModel 
    {

        /// <summary>
        /// 案件类型
        /// </summary>
        [Required]//必填特性
        public string CaseType { get; set; }
        /// <summary>
        /// 案由code
        /// </summary>
        [Required]//必填特性
        public string CaseCause { get; set; }

        /// <summary>
        /// 文书类型
        /// </summary>
        [Required]//必填特性
        public string docType { get; set; }

        /// <summary>
        /// 段落内容
        /// </summary>
        [Required]//必填特性
        public List<ParagraphPolModel> Paragraph { get; set; }


    }

    public class ParagraphPolModel  
    {
        /// <summary>
        /// 段落编号
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 段落内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 提取情形情节0为情形1为情节多个使用逗号隔开
        /// </summary>
        public string IsPlot { get; set; }
    }
}
